<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>KCMS</title>
<jsp:include page="../iframecommon.jsp"/>

<script src="js/demo-skin-changer.js"></script>  
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/jquery.nanoscroller.min.js"></script>
<script src="js/demo.js"></script>  
 
<script src="js/jquery.dataTables.js"></script>
<script src="js/dataTables.fixedHeader.js"></script>
<script src="js/dataTables.tableTools.js"></script>
<script src="js/jquery.dataTables.bootstrap.js"></script>
 
<script src="js/scripts.js"></script>
<script src="js/pace.min.js"></script>
 


<script>
	$(document).ready(function() {
		var table = $('#table-example').dataTable({
			'info': false,
			'sDom': 'lTfr<"clearfix">tip',
			'oTableTools': {
	            'aButtons': [
	                {
	                    'sExtends':    'collection',
	                    'sButtonText': '<i ></i>&nbsp;&nbsp;&nbsp;<i ></i>',
	                    'aButtons':    [ 'csv', 'xls', 'pdf', 'copy', 'print' ]
	                }
	            ]
	        }
		});
		
	    //var tt = new $.fn.dataTable.TableTools( table );
		//$( tt.fnContainer() ).insertBefore('div.dataTables_wrapper');
		
		var tableFixed = $('#table-example-fixed').dataTable({
			'info': false,
			'pageLength': 50
		});
		
		new $.fn.dataTable.FixedHeader( tableFixed );
	});
	</script>


</head>
<body>

<div class="col-lg-2"></div>
<div class="col-lg-8">
<div class="main-box">
<header class="main-box-header clearfix">
<h1>作业任务列表</h1>
</header>
<div class="alert alert-success">
<i class="fa fa-check-circle fa-fw fa-lg"></i>
请选择要查看的作业任务，选择后可查看详情和提交作业
</div>


<div class="main-box-body clearfix">
<div class="table-responsive">

<div class="dataTables_wrapper no-footer" id="table-example_wrapper"><div class="DTTT_container"><a id="ToolTables_table-example_0" class="DTTT_button DTTT_button_collection"></a></div><div class="clearfix"></div>
<table role="grid" id="table-example" class="table table-hover dataTable no-footer">
<thead>
<tr role="row">
<th aria-sort="ascending" aria-label="Name: activate to sort column ascending" style="width: 200px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting_asc">作业名称</th>
<th aria-label="Position: activate to sort column ascending" style="width: 100px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">课程号</th>
<th aria-label="Office: activate to sort column ascending" style="width: 80px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">课序号</th>
<th aria-label="Age: activate to sort column ascending" style="width:250px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">作业描述</th>
<th aria-label="Start date: activate to sort column ascending" style="width: 150px;" colspan="1" rowspan="1" aria-controls="table-example" tabindex="0" class="sorting">到期时间</th>

</tr>
</thead>







<%-- <table class="table">
<thead>
<tr>
<th><span>作业名称</span></th>
<th><span>课程号</span></th>
<th><span>课序号</span></th>
<th class="text-center"><span>作业描述</span></th>
<th class="text-right"><span>到期时间</span></th>
</tr>
</thead> --%>



<tbody>
<s:iterator value="assign" status="duetime">
<tr>
<td>
<a href="assignment_taskDetail?aid=<s:property value='assignmentid'/>"><s:property value="assignmentname" /></a>
</td>
<td>
<s:property value="cid" />
</td>
<td>
<s:property value="csn" />
</td>
<td class="text-center">
<s:property value="description" />
</td>
<td class="text-right">
<s:property value="duetime" />
</td>
</tr>
</s:iterator>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-lg-2"></div>
</div>
</body>
</body>
</html>